package zb.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import zb.demo.bean.Qrcode;
import zb.demo.service.IQrcodeService;

import javax.servlet.http.HttpServletRequest;

@Controller
public class QrcodeController {
    @Autowired
    private IQrcodeService iQrcodeService;

    @RequestMapping("/getQrcode")
    @ResponseBody
    public String getQrcode(Qrcode qrcode, HttpServletRequest request) {
        return iQrcodeService.getQrcode(qrcode, request);
    }
}

